package com.feicheng.persistence.model;

import com.alibaba.fastjson.JSONObject;
import com.feicheng.persistence.entity.Category;
import lombok.Data;

@Data
public class CategoryJsonString {

    private String categoryIDString;
    private String categoryNameString;

    public CategoryJsonString(Category category) {
        this.categoryIDString = "■"+category.getCategoryId()+"■";
        this.categoryNameString = "■"+category.getName()+"■";
    }

    public CategoryJsonString(Integer categoryId, String name) {
        this.categoryIDString = "#"+categoryId+"#";
        this.categoryNameString = "#"+name+"#";
    }
}
